package com.yhm.testSpringMvc.Thread;


public class yhmThread2 {
    public static void main(String[] args) {

        LockConditionTestClass lockConditionTestClass = new LockConditionTestClass();

        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 50; i++) {
                    lockConditionTestClass.sub(i);
                }
            }
        }).start();

        for (int i = 0; i < 50; i++) {
            lockConditionTestClass.main(i);
        }

    }

}
